import { IFile } from "@/components/Project/index";
interface ICate {
  text: string;
  value: string;
}
interface ICustomer {
  prospect: string;
  prospectName: string;
  contactPerson: string;
  jobTitle: string;
  email: string;
  mobile: string;
  work: string;
  fax: string;
}
interface IItems {
  id: string;
  line: string;
  description: string;
  children: IItemsChild[];
}
interface IItemsChild {
  id: string;
  line: string;
  description: string;
  supplier: string;
  unitCost: string;
  unitRate: string;
  qty: string;
  totalCost: string;
  totalAmt: string;
  gain: string;
  gp: string;
}
interface IPayment {
  phases: string;
  description: string;
  percentage: string;
}
interface IQuoteDetails {
  id: string;
  customerName: string;
  description: string;
  amount: string;
  cost: string;
  gain: string;
  retention: number;
  month: number;
  jobCate: string;
  customer: ICustomer;
  items: IItems[];
  payment: IPayment[];
  termsConditionsList: string[];
  attachmentList: IFile[];
}

interface IQuote {
  id: string;
  number: string;
  status: string;
  prospect: string;
  prospectName: string;
  address: string;
  quote: string;
  createName: string;
  createDate: string;
  lastModifiedName: string;
  lastModifiedDate: string;
  details: IQuoteDetails;
}

export {
  ICate,
  IItems,
  IItemsChild,
  IQuoteDetails,
  IQuote,
};
